package fast.calc;

public class Procs {
	public double agi = 0;
	public double haste = 0;
	public double mastery = 0;
	public double crit = 0;
	public double ap = 0;
	public void reset() {
		agi = 0;
		haste = 0;
		mastery = 0;
		crit = 0;
		ap = 0;
	}
	
	public Procs scale(double value){
		Procs proc = new Procs();
		proc.agi = agi * value;
		proc.haste = haste * value;
		proc.mastery = mastery * value;
		proc.crit = crit * value;
		proc.ap = ap * value;
		return proc;
	}
	
	public void add(Procs p){
		agi += p.agi;
		haste += p.haste;
		mastery += p.mastery;
		crit += p.crit;
		ap += p.ap;
	}
}
